package com.example.mybatis.entity.Enum;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;

/**
 * @author Devil
 * @create 2022-03-04 11:18
 */

@NoArgsConstructor
@Getter
public enum UserSexEnum {
    /**
     *
     */
    MAN(1, "男"), WOMAN(2, "女");


    UserSexEnum(int value, String desc) {
        this.value = value;
        this.desc = desc;
    }


    @EnumValue
    private int value;
    private String desc;

    @Override
    public String toString() {
        return this.desc;
    }
}
